package d03_singleins;

public class A {
    //1、私有构造器
    private A(){}
    //2、定义一个静态变量用于记住类的唯一对象
    private static A a = new A();
    public static A getA(){
        return a;
    }
}
